NOTE: The textfield gadget has two event forms. For more information see the shortevent parameter below
Short Event
'gadget GID'
or Default event.
'gadget GID size <newline> characters[size]'
The next 'size' number of characters after the newline are the contents of the TextField gadget.
Textfield gadget parameters.
-------------------------
font=GID
This sets the font for the gadget. The GID points to an ALREADY defined text attribute.
arrows (a)
Give the textfield a scroll gadget on the right.
readonly (ro)
This gadget is read only.
disable=number (dis=)
The gadget is disabled if number = 0 , enabled if number != 0. Defaults to enabled.
TabCycle (tc)
This gadget can be activated using the tab key.
gadgettext="text" (gt=)
Set the text in the gadget.
bindata (bd)
The text will be passed to this pipe in binary after the command line. The gadgettext parameter now gives the length of the data. Setting datain means the data is read from an external file rather than the pipe.
datain="filename" (di=)
Read the data for this gadget from a file.
It is ignored if the Bindata keyword is not present. A length of 0 means to use the complete file.
shortevent (se)
The events sent by the textfield gadget do not include the contenets of the textfield. This paramter only works if modify is turned on.Also see events above.
centerjustify (cj)
rightjustify (rj)
Set the justification of the text for the gadget. Defaults to leftjustify.
bevel=TYPE (b=)
Set the bevel type for this gadget.
0=NONE
1=THIN
2=BUTTON
3=GROUP
4=FIELD
5=DROPBOX
6=SBAR_HORIZ
7=SBAR_VERT
8=BOX
9=STANDARD
minwidth=number (minw=)
Set the minimum width for this gadget
minheight=number (minh=)
Set the minimum height for this gadget
weightedwidth=number (weiw=)
Set the weighted width for this gadget
weightedheight=number (weih=)
Set the weighted height for this gadget
nominalsize (noms)
Set this gadget to its nominal size.
replace=GID
Use this gadget to replace an existing gadget specified by GID.
Definition Reply
-----------------
When the gadget creation is successful the pipe replies with
'ok GID'
Textfield gadget modify parameters.
-------------------------
disable=number (dis=)
The gadget is disabled if number = 0 , enabled if number != 0.
gadgettext="text" (gt=)
Set the text in the gadget to text if scroll keyword is not used. Else insert the text at the position set by scroll.
scroll="num"
Set the cursor to position num.
delete=num
Delete num of characters from the cursor forward.
bindata (bd)
The text will be passed to this pipe in binary after the command line. The gadgettext parameter now gives the length of the data. Note that you can NOT use datain durring modify.
All modifications of a textfield (except a lone disable) are responded to by 'ok POSITION' where POSITION is the final curser position.